FROM openjdk:17-jre-alpine
MAINTAINER lgw <12015272@qq.com>

RUN mkdir -p /apps/service/dig-server/
workdir /apps/service/relay-server/
ADD ./target/dig-server-1.0-SNAPSHOT.jar ./app.jar

CMD ["sh", "-c", "cd /apps/service/dig-server/; java -Xms512m -Xmx1024m -jar app.jar --spring.profiles.active=prod"]
